Added tests for hex