Added test cases for travis ci