Allow use of debug option in resource mocks