Fix the CoursePagesTest

which was intermittently failing.
@muhammad-ammar