Added test if no resources
Added a toObject method to the DomainModel
Added some connection tests