fix delete timestamp

add integration test