Fix tests

+ add verbose switch to tests
Way to set max file to be in logdir