A middleware to develop and test vehicular sensor network applications