fixed test of Gray/binary conversion functions