This whole unit tests tests just one tiny method. Maybe it would be worth testing something bigger and more crucial, like onAlternateEdit? We could pass different mocks and check if redirect was called on $wgOut.