Updated to work with active admin in the test environment