added exception to filecyrpt

also fixed tests.  Forgot to change name of import