tests for required fields in required.js