implementing pages server tests and integration tests