unit test for moving rectangle tests