Added test and Travis CI setting.