test writing testfile