fixed locationcontroller junit tests