Add tests for class resource and resource defaults parsing.