fixed wrong condition
upgrade ruby1.8 test suite
added rdb test into travis