Test stack behavior of pollForWork