Aligning barcode config format with barcode generator.

Broke up tests
I prefer it and I've been trying to replace it when I can. I decided to use raw SharedPrefs here because the code under test is the barcode code and not `AndroidPreferences`. I'm open to the idea if you have a strong preference.