fixing rando
adding tests to kms