working in memory rather than files
reading tests cleaned