Fix test cases for `flycheck-display-errors-function`