add tests for utils and views

Summary:

Add unittests for `utils` and `views`. Increased coverage.
See detail in gist: https://gist.github.com/lukaszkoczwara/20677b3bff620ce3f714