Add tests for layer metadata popup service

Some new tests...