update the test case due to yihui/knitr#798