Add tests for IG functions and fix parseIGData