Add tests for bg layer selector directive
Add tests for permalink service