created test for velocity calculations