Throw on invalid source type.
Pass along the test name and file name.
v0.0.3