testing valid response; refactoring tests.
added travis