pipe: fix enqueing and empty?
tests: test for pipe emptyness