Refactor invitation accepting tests.