added a test case for hex