added tests for invite notifications