Fixed some bugs. Updated scala-test version.