improved the tests for base64, the calculate method now returns the exact size of the encoded data