Refactor tests #4583

wrong docstring