add testcase for not allow the usage of detached scope as a scope