adding more tests, fixing a bug in Write-Warning output