refactor: coverage and code climate