Passing only the object instead of the entire object result to the output formatter + added some tests.