Empty array fix, Replacer test cases added
travisplexer: pr-454-osx travis ci test