Added functionality to pass test-buffer.js (base64, hex, ucs2, float/double)