Add unittests

Implement testcases for basic functionality: routes, view-filter and search.