Added test code, function that converts bits to list of bytes as ints.