Add test covering the case of nonexistent credentials