Added `expectedException` stuff to `testShiftRank` back because it's still needed if `error_reporting` throws E_NOTICEs as well.