added a test for variadic functions, and fixed tests