[TIMOB-11869] Added unit test for tiplugin and ios. Some small cleanup.