Mock ProductDatabase so tests can run without a productid.js file
Fix incorrect patching.
Merge pull request #888 from candlepin/awood/unit_test_fixes

Awood/unit test fixes