Add regression test for older emacs(<= 24.3)