adding test for required field