updated unit tests and tests for travis