some tests of features and slight buf fixes and optimizations
data driven tests, tests now cover most analitical code