simple comparator closer to working, add test