Coding ReadableEntity::getLastContentOfExtension and tests