deleted file testing hook