Add unit tests for distributing views

Closes #28
A HUGE thanks to @vytis for contributing this!