Revise all tests to reflect the change of Allocate using static methods and variables