API: add more tests.