NUnit tests added

Some changes in code were performed:
- NUnit tests added for SerializationConfiguration
- Code was refactored