CB4662, CB4879 cleanup errors in file tests

(cherry picked from commit dc2f5538bdb9eeaa980273cd483a59343508478a)
CB 4878 - media tests should wait for file load

(cherry picked from commit 4cba23f05443607e26cf82e7746f6fe55511e329)
CB-4894 handle correctly when geolocation not available

(cherry picked from commit 32d806a11fbd460aef2dc3b7fabd2adfe4b3e6a7)