Fix tests osx

This fixes tests on the Mac.

There are also two substantial code changes which were bugs:

- Free trial text shorter on narrow screens
- Change logic of default effective user when logging in