Fix minor errors in the afalg test