Handler should support fn passed as an arg
Test for handler hooks
Tests for global config