refactoring: increase test coverage