added unit tests for registering a handler, resolve/rejecting, then
registering a second handler.