Adding tests for read and ACs functions, externalizing to_hex function