Added some tests.
Cleaned hgignore.