add tests for create-handler
add tests for static handler