Added tests for delete-while-recording bug, passed. #43 fixed due to restructuring