added tests for confirm and confirmEmail