Fixed a bug in the memory_logger and changed some tests.