Mainly added unit tests to views.py and algorithms.py, which contain most of the functionality.
assigned to @vermaas
merged
mentioned in commit 20f02297