Numerical simulation of cavitating flows with homogeneous models