Refactor ElectiveGroup spec
Refactor Course spec