added test class
added length provider
added scaladoc
added scaladoc