Sorted out the mechanism to allow spying in specs with Requirejs injection / AMD