fixed the last issues, ran all tests, added a memory test