Added Validation class, tests for it