test save, edit and view data with models using associations