Add tests

Maybe expand on the use of `Fernet` here?