Add tests to our review-apps automated cleanup logic

Context

Follow-up of !112658 (merged).

Goal

Add tests to scripts/review_apps/automated_cleanup.rb, so that we can catch basic errors like the one fixed by !112658 (merged).