added test for http://code.google.com/p/sympy/issues/detail?id=3029

The issue report [here](http://code.google.com/p/sympy/issues/detail?id=3029) seemed to request some test. This pull request should provide it.