add method getAll()
refactorize interface of validators
add tests for validators