updated tests + moved xml resource interface to reader namespace