Factor functional tests and add initial handling of post for adding an item to form