Direct force measurements for testing the LISAPathfinder gravitational reference sensor