Committing test for TryWIthResources