fixed checking of validatons in test cases
more tests