Add horrible hack to avoid race condition with setMockLocation
Add test for map button in main view

Try, and mostly fail, to make JS tests run more reliably