Consolidate tests for HandlerFunc