Fixed the functional test.
Had missed out on the name attribute of the form tag in the template.