Add a test for function accumulation attribute