[test] [minor] Added coverage for storing objects on resource. Added failing test for storing arrays on resources. Made datasource type configurable. Code cleanup.
[test] [minor] Added coverage for storing objects on resource. Added failing test for storing arrays on resources. Made datasource type configurable. Code cleanup.

bigcompany/resource