Added some tests for form