Add test case for view

Add a test case where the attribute is not defined on either view or model