Update test-core.js

Fix click event to correct target.