test for viewing contents