Finalized testing code. QDB successfully passed the standard tests