Fix bug with png_pipe and more tests