Yes sure you can use AJAX to load files just keep in mind that file load happens asynchronously.
So you need to use pair of beginAsync and endAsync calls. Like this for example:
// start asynchronous part
var as = t.beginAsync();
Ext.Ajax.request({
url : url,
callback : function(options, success, response) {
// notify that corresponding asynchronous part is complete
t.endAsync(as);
if (!success) t.fail('File [' + url + '] failed to load');
var obj = Ext.JSON.decode(response.responseText, true);
// assertions to validate obj
...
}
});