test adapter class