[FIX NOT TESTED] reference asynchronous parameter in function will result in script failure
[DONE] test