removed unnecessary parentheses, unused imports and variables (pared down warnings)
fixed lifetime issue with group vectors in testcases. fixes #4