unit test center of mass