Add test cases for newfile and va-write recent regressions