Tests nitg --semi-global

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