In memory tests

The tests have not covered the RAM construction (temporary files are written to RAM instead of disk). This tests are now added.