[core] Yarn check config should not depend on test code

In particular nose.tools