tests: improve test coverage.