Refactored some of the methods for getting test resource IDs