Add tests for new Resource model.