only throw nested declaration error on object level
update complex example test