location test working in browser