Tests of subgrid models for star formation using simulations of isolated disc galaxies