Unit test for import performance STUD-1994

Unit test for this recurring issue: https://openedx.atlassian.net/browse/STUD-1994

@dmitchell @cpennington Please review.
You can use `method.__name__` to get the name of the method.