add assertion, fix to work on simulation
Merge pull request #201 from k-okada/fix_test_cartesian

add assertion, fix to work on simulation