Add unit tests for views
Drop unused Exception classes
Drop unused utility filters
Minor fixes in expand()

- remove unneeded test (var is in args since it is used to build the regex)
- handle the case where default_attribute is an empty string
Remove unused code
Add unit test for expand()
Test french translation of the index page
PEP8 fixes