Fixes #5744: add missing test in ncf for variables