Make this test conditional on math.lgamma, not version check.

This will work better with other Python implementations.

Also using warnings.warn(...) is overkill in the test suite.
Don't need collections.Counter (Python 2.7+), can use defaultdict

This is available on Python 2.6, and the unit tests seem to pass.