Tests: theory and practical