Fix profile guided compilation for secondaries and add more tests
am: c4f6a0b633

Change-Id: I545650d84c89943f0abaa0377f3ab37aa122e549