Reduce number of queries required for dashboard.
Converted last_test and last_completed_test to associations and use
includes when querying.