added mode change - fails because TermWriter broke it
Merge pull request #36 from jedi4ever/master

test for mode change