Improve unit test with StringIO stream

Loading a configuration file leads to failed travis jobs. Pass in a
stream object with the sample yaml data.

Signed-off-by: Christoph Kassen <c.kassen@telekom.de>