Use Test::Number::Delta for numeric equality tests