Fix jasmine test by opening popover before setting expected value