1) Make sure "use current file for test run" is checked in preferences > environment.
2) Make sure the script is saved as .c and not .wdl. When saving files you will have to manually type the extension.