test and fix pool class