fix object resource
update tests
update