Add tests for Allocation.

Change-Id: I818f18fef566bacd4f3e72078a1bac9cbbc6de28
4 files changed