Clean up uses of #inject in tests (use to_array instead)