Scope shifting for common scope transformation with tests
* Transformation semantic needs refactoring because of views