Added function getObjectValue
Added tests for getObjectValue