write_testthat_file function

Transform a pointblank agent to a testthat test file