Fix tests, setup for Tavis

This fixes all existing unit tests. We should add some new ones for the new cgpt next command but that can come in a second step.