use mock instead of remote call, closes 1174
Merge pull request #1182 from modilabs/flakey-test-1174

use mock instead of remote call, closes 1174