fixing group text retrieval and new test for generating latex output
modified tests to expect latex tags in the output
one test case passing