Added tests for new PageFactory implementation