created a testsuite and made bugfixes