Add QCodeEdit tests