whitespace fixups
add tests for idle timeout functionality