Edited Allocate to include a clearAll method
Unit tests for Allocate and CheckPoint