Fixed ValidationError tests

cannot use deepEqual anymore