Alloc: the alloc test can now be a bit more selective.