fixed EMACS test for EMACS 24