Testing number of toggles code