Optimize different test scopes