Add some tests for popover directive