fixed test error caused by Closure