Adding first test case for Validator testing
Refactoring ValidatorTest and adding second test for library document
Code style changes for phpcs