fixed stupid bug, scope tests