Tests for getFunctionContext