Added set credentials testing code