Remove non-Rails code from AuthorityTestHelper