Added newline at the end to mathematica module and added the failing test case for the issue 1160 to the tests module