Refactor completer spec.

There was a lot of repeated setup code.
Move tab dot completion spec to units.

The integration spec was a bit too specific, a unit spec is faster.