TEST: adding stdout and stderr tests