Fix usage of the gateway code in the dasboard tests (#2882)
Fix usage of the gateway code in the dasboard tests (#2882)

When the dashboard was using the gateway tests, it was causing the panic, since dashboard service in tests not always initialized.

Fix for https://github.com/TykTechnologies/tyk/issues/857
lonelycode/tyk,lonelycode/tyk,lonelycode/tyk