Handle non-existing file

Display correct error message in case of non-eixsting file and have a test case for this.