added junit to pluginManagement in snap-desktop and declared the dependency where necessary.