Added failing test to scopes
Made sure scope always returns an instance of Scope
Added exists function to scopes
Merge branch 'scopes'