Added test to ensure that we can serialize and deserialize secrets correctly.