Added tests for view/resource into arbitrary objects