metomi/rose#646: fix and add more tests
metomi/rose#646: fix test
metomi/rose#646: remove debug exception