JUnit tests for comment validator.