Optimize XML course loading in unit tests

TE-489