removed maxDiff ref.
refactored tests