Add popup directive tests

dev_test_popup
Merge pull request #734 from geoadmin/dev_test_popup

Add popup directive tests