added custom function and operator tests