Improved test coverage of toggle pattern.