BAC-1197: fix ResourceLoader test

@wladekb 

Related commit: 4753b766884430cdbf8d0198d99c511d4239d792