added 3 unit tests and made travis run them.