Refactored tests for forwards and backwards movement.