Started converting tests to ScalaTest.

Revamped equals method in MDD.