add tests for validatorLibrary