improve tests for popover feature

works on #8