* changed core module to be a class so that it is possible to inject
dependencies 
* added tests for views.py module