added should_cover method, used to determine whether coverage should be measured