Added system testing functionality, ironed out some bugs with pool memory