added hex and base64 conversion and additional unit tests