Fix reading xattrs in object-server's unittests.

Use for reading metadata in unit tests function from object-server.

Change-Id: I2bfeb76fdd775442a0e614fef740b0987fba4a22
Fixes: bug #1079131
Merge "Fix reading xattrs in object-server's unittests."