Updated tests to use a shared setup.

Started adding travis-ci support.