Remove duplicate setup logic in federation tests

This commit removes some duplicate setup logic for the federation test
cases.

Change-Id: I8886a83ffa8100af95d5cd877e8adacc9d38bbd6
Closes-Bug: #1389623
Merge "Remove duplicate setup logic in federation tests"