proper page count and test

Signed-off-by: Andre Dublin <81dublin@gmail.com>