refactor(status.bar): refactor `statusbar-view` to make it testable
test(status.bar): add tests for statusbar-view