Change the way to return a non-inexistant topic and adding two unit test
Format files according pep8

Change-Id: Iaf951da15ddd875b75ac69d4ca4a81ca09f2ff4c