Serbia's ruling Serbian Progressive Party (SNS) narrowly won elections in two small municipalities, Zaječar and Kosjerić, in a first test of popularity since nationwide protests started six months ago.