making onclose file render test more clear