detect filetype in testbench#insert()
align variable declaration