added test for pool with pages of variable lengths
fixed PACH when writing to boundary of pool with pages of different size