fixes exceptions, and makes behavior in testchamber better.