[test] Added basic test for Resource.init
[api] Added ability to use Resource.init methods