add ability to use a route group on environment and related tests

Pull request for ticket https://github.com/laravel/framework/issues/3120