Add unit tests for secrets.