Tests fixes. Added context to adapt.transform