sincedb EOF write fix, testing script