[tests] move ExpressionFunction import into test