Modify tests to work with form data instead of JSON