library for test replay