test for validator written, but gets null pointer exception