Rather than marking the material as covered manually in lines 6 through 12, you should be able to just use:

    Fabricate(:covered_material, material_fullpath: "materials/computer-science/logic/logic.md", course: course)

You also don't need the time travel, I believe.