fix test file; add another test for API