unit test function to create page links