popup: fix gemini tests to use proper api (closes #973)