Update XMLDatabase.java

Unit test added