fixed config plugin, added test