Unify logger and pipe tests a bit