Added the set credentials unitTest