Changed unit tests to check validation.