Add some unit test about scopes, #7