Modularization and tests for bbbDAQ