Tests for on started/ended