Update AllocateTest.java

passed junit test for allocate class