Partial stroke test for ESD and HIPPS valves