Fix test failed in old version of ruby

DESC: B
1. Before ruby 2.0.0, String.chars return an Enumerable object, not an
array, and it causes "uniq" method not found error.
Merge branch 'develop' into build