Fix pool_size and shutdown methods and make tests pass again