Strict verification of resource deletion in TemporaryFolder rule

PR that adds support of strict verification of deleted resources when using `TemporaryFolder` rule #1001
style-nit: space after cast