add failing integration test for Average