API: add miscellaneous tests.