Feature/tests

Adds test suite containing 13 tests for views and controllers
Same error cases as above.