test script to check how splitting the data and averaging works