Added a usage for an unused Exception variable
Removed unused variables in KeyValueStoreTests.cs