The Einstein principle of equivalence in cosmology