Add cabal test suite for simple test

Added "tests/Main.hs" to run test with cabal test suite.

Renamed "Test/ReadWrite.hs" to "Test/Examples.hs", used in the test and example
executables.
Add travis yaml file