Added test code to page.js