add a test to test the APIs