Add test for format related options of the generator: space_before, space, indent, object_nl and array_nl.
Implement space_before as documented in the generator