add tests for handlers