fixed test remove lab

if a course has a lab, and the lab was added but the course couldn't be
added, the lab is now removed from the schedule container.