Add tests for DebugLayer