Corrected end2end test. Added average() tests for other analysis
methods.
Updated experiment-running code according to new structure.