update SBC implementation and add a test.