page parser tests and implementation