Refactor physics shape test