removed redundant code parts
added some tests for mkString