Typed handler in test