CLOUD-364 fixed credential creation without endlines & update tests