Finish onLocation function testing

I finished testing th onChooseLocation function using mocking of data.