Testing the kinetic energy functional: Kinetic energy density as a density functional