I know the assertEqualCommands is a bit dangerous because computer.construct can issue extra malicious commands and we will not catch them with our tests ... but we shouldn't use logger for testing in the first place.
The whole slapformat needs thorough rewriting.