Added view tests. Fixes #3