Add tests for addHandler, removeHandler and getHandlers