added test method for Adapter