Tests for storing delegated credentials