Minor fix for consistency.
Added simple unit tests.
Added travis-ci build status image.