Add TestHandler to api