Added tests for component instantiation in scope