tests: more code coverage for some specific functions.