Initialise view before getting variables
Fixed test for view creation with different entity types
Merge pull request #28 from emorency/feature/test-create-view-entity

OPAL-1724: Fixed error and test