it is now possible to choose number of preparing nodes
manager now remembers count of prepared nodes for correct starting and stopping
added several tests to writing