pebble testing event handler code spock