replaced scope lookup by local variables
settting tickTime
setting init and sync limit
allow setting leader
moved specs out of parent context