Fixes a bug in memory allocation test code.
Fixes a bug in page_free. We want signed integer comparisons.