tests: Improve the testing of acl_set_file function.

See also: https://bugzilla.redhat.com/show_bug.cgi?id=985269