Set ouput_bit to 0 instead of cast error
Fix testing (only requireInstance) for DBHandle once