Setting up tests and fixing Travis configuration.