move helper class for allocation tests to base class