Test the flag parser