fix error in second access to request.form/request.files, tidy module/tests