add test for request handler need refactor