Added tests to the Pool class

Pretty full test coverage, had to make updates to the actual pool
class to get everything working.