First attempt to make api server run in process for tests