Added tests for view.detail