fixed model views and now execute properly. also improved foreign key testing and other tests