fix test cases for rewrite
fix toc test cases
#235 prefix format for REST names, with test case