add tests for issue #50
varargs fix