Fixes implementation and adds tests for readBlob().