#51: added tests and replaced guava joiner with apache stringutils to avoid nullpointer exception