Proper handling of flag error messages. Fixing test that wasn't passing.