Identification cards -- ICC-managed devices -- Part 4: Test methods for logical characteristics