Add goleak detection to tests
Add [goleak](https://github.com/uber-go/goleak) to tests.
issue