Added test for multidimensional theta parameter. Fixed syntax errors in checking theta for builtin correlation functions.