added a corner case test, when there are no pairs to be evaluated. refactoring might still be needed.