Additional test coverage for view handling, fixes #243.