fixed tests with validator