moved page_test methods and tests to lib/analyzer