Tests for tableExpand_cpp

I wrote different tests for tableExpand_cpp. I helped me to find a bug that I fixed.
Also turned out that hack for #22 is not needed because I wrote my own version on format, which behaves identically with and without slashes. In any case I have added test cases for that from comments to that issue.