bug fix for physics engine test