unit tests for form bugfixed