Add tests relating to use of collection and array views