Rewrite tests with ert

And 'dont-compile' is obsoleted from Emacs 24.4.
Merge pull request #17 from syohex/rewrite-test

Rewrite tests with ert