test save credential