remove flat.js before creating testdata
more details on test method