Added test for scalar node output

- Based on the example in issue #304