Increased test case coverage, fixed several bugs in method pool.