Refactor walkt0 test case so that it can test different pool classes.