Changed how views are created. Added a means to close connections so tests don't create too many connections. Increasing test coverage and changed test structure.