Fixed some bugs in support to testbed
merged with data analysis scripts
Support to testbed