Fix calculation of active size for case of sharing att
Improve test case
Add test case for delete_doc with shared att