fix test problem with subprocess