Upgrade ruby version to 2.1.1 in travis matrix
Fix unit tests