Tests: Removed use of put_alias without an index name

Relates to #7863