Add test to the default error handler on the pipeline error proper handling (#26)

Signed-off-by: Clement Escoffier <clement.escoffier@gmail.com>