Add test cases
Merge pull request #2 from winebarrel/add_test_case

Add test cases
Fix warnings
Update .travis.yml
Fix test cases for AR 4.0 and 4.1