tests for request helper methods