Tests for bimod and gshare