fixes tests in MainCOntrollerSpec.js