Fix tests misspelled
Change variable name
Refactor tests
Add tests to Pages class