add test for blocking pop