handle division by zero bug in record link sampling
add tests for dedupe & recordlink sampling