Add tests for inherited metadata to test_dump_course, and move to commands/tests dir.