Refactoring test case helper to use varargs.