api: fixes and test
0.1.9