More work on adding components using json.
Added a small set of tests to test this inputting