Add interval equality test
Fix interval equality