raise an error if unsupported view type is specified for creating view
[View] - Issue #43 - started writing more func tests for view