Added unittests for objectstorage behaviors.

Change-Id: I84a6f09935effa58df76e07887a1d47e79e59eb8