VM tests
Simplify layers changed event publishing, and add headers