Make bar working with non-terminal devices
Simple tests and Travis-CI