(22740) more create_resources input validation

Added input validation for optional third argument of create_resources,
and added a test to match.