(1) \margindata{test} gives an error. The log message is:
One has to use \margindata[]{test} to avoid the error.
(2) \margindata[]{test} has spurious whitespace, \margindata[]{test}% must be used to avoid that.
Below the minimal example and the output.
met vriendelijke groet
dr. Hans van der Meer