test: ensure that s.ondata is set not too early