Added hooks for panel directive testing.