fixes code to mirror test
adds a test set for request methods