test cases for createview