add test for request method