$resource is undefined in Ionic?

Wondering if anyone has come across this.. I have a project that makes use of Ionic, ngCordova, and ngResource. I import them in what I believe is the right order;

<!-- Angular Modules -->
<script src="lib/ng-biscuit/dist/ng-biscuit.min.js"></script>
<script src="lib/angular-resource/angular-resource.min.js"></script>

<!-- ngCordova -->
<script src="lib/ngCordova/dist/ng-cordova.min.js"></script>

<!-- cordova script (this will be a 404 during development) -->
<script src="cordova.js"></script>

My factory is pretty simple;

(function() {
    'use strict';
    angular.module('test')
        .factory('TestService', TestService);

    TestService.$inject = ['$resource'];

    function TestService($resource) {
        console.log('creating TestService ' + JSON.stringify($resource));
    }
})();

On a browser, I get an expected log of an object, but when I run this in an emulator, I get:

creating TestService undefined

Has anyone come across this before?

    'use strict';

 app.factory('testService', [
  '$dependencyInjection',
  function($dependencyInjection) {
          
          var factory = {};
          
          ...
          
          return factory;
          }]);