fix unit tests to work with and without Y.Node._instances