Fix minor problems in qadapter tests