Add test for popup service

Tests for popup service