add test output, put library("grid") where needed