Also added a test to check for a with a regular PDF, instead of only an encrypted one with expected exception.