Add test for failed course creation