Fixed NamedScope integration test