Added tests for external reference file amdloaders.

I was wondering what might have caused the infinite loop amdloader issue, so I wrote this test case. Doesn't appear to be the issue, but it seems like a good test to keep around.