Added test for invalid form