Unit test for import performance STUD-1994

Unit test for this recurring issue: https://openedx.atlassian.net/browse/STUD-1994

@dmitchell @cpennington Please review.
docstring? It makes sense from context, but I think it makes sense to include some explicit explanations of what it does