Converted form tests to unittests