added test for resource model that also tests that the model gets wrapped when you pass it into a component's constructor