Fix unittests

reached 100% code coverage for APIs :+1: