Add test coverage for addHandlers()