Test sqlachemy objects with Component instead of Plan

Change-Id: Iac2ac0a760d363a2ba0c1b1b5e9b22f11910be33