Adding travis build icon to README.
Adding unit tests.