fixed Pipeline#pop and tests