Create KeyValuePairSerializerTests.cs

- Added a unit test for the KeyValuePairSerializer class.