unit test validation