Added tests for hex read function