Add get_all and post unit tests for components controller

Change-Id: I311b20974de350654574e5eb2c050b00e0d21133
Merge "Add get_all and post unit tests for components controller"