The test for the WP_CLI_CONFIG_SPEC_FILTER_CALLBACK constant seems to be in the wrong file. It is in the config.feature file (which deals with the wp-cli.yml et al.), but it should probably rather be in the flags.feature file.
Originally posted by @schlessera in #5664 (comment)