added tests for using XHR to load local files