(#114) - new compaction tests

Compaction for leveldb fails if revs.count === 0
See: https://github.com/daleharvey/pouchdb/pull/555#discussion_r3365543
(#114) - fix leveldb compaction failure

If there was no revisions to compact compaction failed to call
callback