New test for the bad_scope case.