Added tests for object_put + minor bug fixes