Adds tests for registerHandler and logoutHandler