fix test for required fields