[parse.validate] tests and bug fixes for module