Converted Samplable trait methods to ScalaTest