[PATCH v2 5/5] binder: encapsulate individual alloc test cases