Create AllocateTest.java

untested, Allocate must be updated.