console log in the test not in the source + fix a closure loop problem