failing tests if unrecognized flag is encountered