Fix error in test_handlers following merge of self-registering handlers