started writing tests and added travis yml