[dj, nim] Refactoring view poll test