Tests

This PR increases the unit-tests coverage: http://jenkins.cloud.fedoraproject.org/job/fedocal/449/cobertura/