Add tests for layer metadata popup service