Upgrade ruby version to 2.1.1 in travis matrix
Fix some unit tests