Fixed error introduced in 8ec5030b

Integration tests needed to cover the gaps between unit tests...