ticket:5 tests for invalid data