Added tests for custom handlers

In #37, it was identified there should be a test for custom handlers. I couldn't find any such test, so I created one.