added basic test and prototype for loading from xml