remove temporary text file
add some tests