Added tests for XML loader.