MDL-46658 gradebook: Fix gradebook behat tests

This issue is a part of the MDL-25544 Epic.