updated test to verify correct model
added mapping for domain -> model objects
updated view to use correct model