added pages impl and tests, fixed unicode warning
added pages impl and tests, fixed unicode warning