Use more safe bytewise coercion of float to word in tests.