added some test cases for xbm