Added tests for invalid data