Added tests for putting spaces after output