add test for page factory