Code improvements and test for bandcamp plugin