Fixed the broken remote tests

This test worked fine locally, but didn't behave as expected when ran
against production. My changes remedy that.