Test cleanup
- Worked on the tests failure issue in test_Item and fixed it. Though it was not that necessary as in whoosh that assertion part won't be there.
After talking to Thomas and dreimark, the way test cleanup is implemented is not the standard one. The tests should be cleaned only with unprotected_backend. Traced the execution, why unprotected storage is not working in this case and showing IntegrityError.
- If 'up' backend is emptied, protected backend should be cleaned too. But doesn't seems to be happening like that.
- Reason - For some tests items are created only in unprotected_storage and not storage backend, mostly in cases of creating new user.
- Traced the execution to find why such thing happens there.