adding comparison and tests