Adapter Trait wrong usage in tests