Missing views and mapping

- Added any missing model views and their mappings.
Tests set up and tear down

- Changed test data set up and tear down order, so that testing data
will be visible in the database after actual testing. And data will be
deleted before rerunning particular test.