Changed decorator in the test library so that it accepts varargs