add credential tests