Added unit testing for pages