Add tests for from_bits.