rewrote page.test to run synchronous