Added runtests py to distribution package, unit tests fixed