Eager loading of owner and trackable for activist in Active Record

This solves some problems with N+1 queries that I was having while using this gem. However, I broke a test and don't know how to fix it. Can you help me with this?