Add jquery to simulate a click and allow a more functional test for directives