added unit test support to measure resize events