Update test-core.js

Make tests click fancytree title and not list element.