add getDataSize method for (compressed) debugging
add size test for compressed