Updated middleware unit tests to use only query strings.