Cleaned up test function.
Cleaned up test function.

[#139228793](https://www.pivotaltracker.com/story/show/139228793)

Signed-off-by: Dale Wick <188d987a4b971a1fecf708bf002a3b94c86c96a2@pivotal.io>

cloudfoundry/yagnats,cloudfoundry/yagnats