Add missing import.
Add getResourceCount to base loader.
Add dummy loader tests.