Added unittests to sync_plugins.py