Add a test for printing

Here is the original bug:
https://github.com/sympy/csympy/issues/204#issuecomment-46774428