Add test case for AllocateStrategy and some modifications on EvictStrategyTest

Add test case for AllocateStrategy, and some modifications on EvictStrategeTest,  delete Thread.sleep() which is not necessary,  and unused Exceptions.