add applyImpulse and test case for it