added ClosureAdvice with tests