adds a scope to the test and removes unnecessary require