tests for xorm