form unit tests bugfix