Fix coverage issue
Merge pull request #823 from Metaswitch/issue782

[No reviewer required] Fix coverage issue