test storing credentials