Added type checks for blobs and unit test