src: Fix testing of no-parameter functions.