Tests for patient validation