Test case for infinite correction

@jonas054 @bbatsov infinite correction on this guy, mind taking a look?