Fix unittest failures for progessbar

This solution is not super nice, but solves the current errors. A proper mock
based solution would probably be preferable.

Reference: #ep14boat
tests: test that progressbar adjusts to term width

Reference: #ep14boat
Merge pull request #118 from olof/topic/progressbar_test_failz

Fix progressbar unittest failures