Valve testing device