fix secrets example and tests