tests: Some doctest fixes

Change-Id: Ib3f413fd3b433a5330cdece46cabe96b310331a7
Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>