add testcase "copy_page_range"
refactor logging routine
introduce pprintf_wait