add stand-alone tests for portalalloc