testing double barrier