add intercept func test/code