Command substitution problems testing