Changed some exception types in the KeyValueStore test class