tests
fixed accumulation bug