fixed a bug in unit test: no hex2bin() in PHP 5.3