BeadsEditor: change default config. fix a few bugs
Fix unit tests