fixed specs and added eager loading to index page query