Ensure that location is monitored only when the test is actually running.
Immediately stop monitoring location, when the app is backgrounded.
Removed use of background mode location monitoring.