implement some tests for Resthub.View

fixes #41