fixed tests, added option to disable pygamma