added 2 functional tests to check validation errors