Unit test for import performance STUD-1994

Unit test for this recurring issue: https://openedx.atlassian.net/browse/STUD-1994

@dmitchell @cpennington Please review.
`test.py` defines all of our caches, and doesn't vary between jenkins and locally, I don't think. Were you able to observe a difference between jenkins and locally?