fix for grad with pos control and test
Merge branch 'poscontrol' of https://github.com/blandry/drake
use valuecheck in test