tests: broken tests fix

* Fixes broken test cases reported by Travis.

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>