add test for request class