add test to custom adapter class