MYLOC-83

these stubs need to be defined after the userLocations instance for the test to run in the browser. it's probably something to do with phantom not supporting localStorage so stubbing the return value is not a problem before the instance creation.