fixed xtend tests and added documentation