Fixed ugly memory leak, added a mail with ' in tests and a performance test