Logspace fixes, chattest cleanup