added a test for the api page.