unit test and bugfix aodvstub