Adding missing delete all for SingleFileInstances and using the function in the after clause of the spec