Use custom_target as test executable

The [[test]] function now accepts [[@custom_tgt]] and [[@custom_idx]] for the command to execute.