Fix tests to compare distances, not norms.
Add Gaussian function to tests