fix tests, bugfix clearPool