Refactored geometry traits tests.