Warn on invalid output-path

Add unit tests