added unit tests; added default dictionary dir and word resources