Added models for testing kernel gradients in unit tests.