added unit test fixed xml repositor