gerritchangesource: test branch is branch for event type != changeset-created

and some cleanup of failUnless* API usage

Signed-off-by: Pierre Tardy <pierre.tardy@intel.com>