Add popup directive tests

Add simple tests for the popup directive