Add unit tests for qr, ql, and rb.