test for multiple barriers added