heap: add fixtures
tests: cleanup
Merge pull request #172 from segmentio/refactor

Refactor