fixed whitespacing, added comments to clarify test case