Added tests for case classes.
Added test for defining equals method.