olaf/greg/bz/test

Re-works tests and adds Travis config.