[test] Added tests for resource.invoke
[core] [fix] Allow for non-object data in resource.invoke