Added unit tests and travis config

Signed-off-by: Ozan Turgut <ozanturgut@gmail.com>