If you want to remove files using a glob pattern the you can not use salt.states.file.absent because it does not support file globbing. To workaround this you can simply use salt.modules.file.find.
remove_test_files:
module.run:
- name: file.find
- path: "/xxx/yyy/zzz"
- kwargs:
iname: "test*"
delete: "f"