Changes tests to define constants for config

This should play nicely with travis
Adds travis config