Add tests for group by var types. Closes #57.