title: java.lang.NoClassDefFoundError: scala/Product$class
body: <p>I am new to scala and I am trying out few sample codes for testing. However I am facing some issues when I run the test code. When I run the test, I am getting an error</p>
  
  <pre><code>[trace] Stack trace suppressed: run last test:executeTests for the full output.
  [error] (test:executeTests) java.lang.NoClassDefFoundError: scala/Product$class
  [error] Total time: 3 s, completed Feb 27, 2017 6:57:15 PM
  </code></pre>
  
  <p>My code is as follows </p>
  
  <p>FilterChecks.scala</p>
  
  <pre><code>    class filterChecks extends FlatSpec {
  
    "Filter checker passed a filename which is present in directory" should "return file name" in {
      val matchingFileName = new FileObject("match")
      val listOfFiles = List(new FileObject("random"), matchingFileName)
      val matchedFiles = new FilterChecker("match").findMatchedFiles(listOfFiles)
      assert(matchedFiles == List(matchingFileName))
  
    }
  }
  </code></pre>
  
  <p>FilterChecker Class</p>
  
  <pre><code>class FilterChecker(filter : String) {
  
    def matches(content : String) = content.contains(filter);
  
    def findMatchedFiles(fileObjects : List[FileObject]) = {
      for(fileObject &lt;- fileObjects if(matches(fileObject.name)))
        yield fileObject
    }
  
  }
  </code></pre>
  
  <p>FileObject </p>
  
  <pre><code>class FileObject(val name: String) {
  
  }
  </code></pre>
  
  <p>The build file is as follows:</p>
  
  <pre><code>name := "testScalaProject"
  
  version := "1.0"
  
  scalaVersion := "2.12.1"
  
  // https://mvnrepository.com/artifact/org.scala-js/scalajs-test-interface_2.12
  libraryDependencies ++= Seq("org.scala-js" % "scalajs-test-interface_2.12" % "0.6.14",
    "org.scalatest" % "scalatest_2.11" % "2.2.5",
    "com.novocode" % "junit-interface" % "0.11",
    "org.scala-lang" % "scala-library" % "2.12.1")
  </code></pre>
  
  <p>Could someone help me out in finding the issue . Thanks in advance</p>