A sinon utility function to return complex stubbed objects.