Added hex2bin() function in tests for php < 5.4