Write some more scope edge case tests.
Use stdbool.h and bool for booleans.