Add some flag-related tests
Add a sandbox test