Added missing unit tests.
Renamed grad3 to gradient-matrix.

Addresses issue #18.