fixed small bugs in adv tests