Refactored common float tests.