Gravitational tests of the generalized uncertainty principle