add test which checks that a different key is generated each time it is called