test uppercase behex and unhex + fix unhex

Signed-off-by: Mattias Andrée <maandree@operamail.com>