Unit tests for source loader.
Cleaner reader close.