Added ability to specify global targets to the toggle pattern
Update tests