specs can have optional on-success handlers