TDD for resources

This line will break since `@resource` hasn't been saved (and will not have an ID).