Add a test for io.resource

While debugging some code that used `scalaz.stream.io.resource`, I wrote this simple spec for that function, to convince myself that it was behaving as I expected. I thought this might be worth contributing.