Updated formatting unit tests for outputting space after word instead of before word