Move common files used by several tests to common folders

Change-Id: I2bc6b930a726ef0f90fdb820322c94d69e4c33d1