wip: create test directory and simple tests for views.py
wip: style fix on views.py