use abspath for testroot
updated demo