test for invalid data