create empty tests
implement initial working version
fix the goroutine staying alive infinitely

Couldn't think of a way to test this, though
Tried to close the out channel, but this resulted in a panic:
'channel already closed'