#24 refactoring algrorithm init
#24 refactoring algrorithm init
adding testhelper integration tests