Use pixel epsilon in geometry tests and fix Lines test to also check neighboring pixels