more adapter tests added, resource type guessing added