Refactoring, get page test, cmd options