created test implemention of lib/binary