improve hexadecimal test

Improved the hexadecimal test to no longer require a specific
error message so that users are free to create their own.