Documented Partition and converted test to ScalaTest