add tests for bundles plugin

fix some sonar violations