More aggresive memory cleanup.
Remove console outputs.
Fix test.