Add tests for DLM function

Additionally, improve the metric reporting to report 0 as a minimum
result fot the "similarity metric".