Tests nitg --semi-global

Some work an cleanup on tests.sh and cie.
Also add a new engine `nitg-sg` that is `nitg --semi-global`