Fix tests which have problems with agent generation based on examples fr...

...om RVMonitor