more tests and fixes
all basic unit tests implemented