Added test case for HandlerRegistry