Use gateway for functional tests

This patch ensures that all functional tests are executed using the gateway
node.

Change-Id: I22823ed40fb856ac1ce7308bfb596a5e2829245a