is there any need to mock `$location` ?