Adding proper errors, a few memlog tests.