Fixed test_last_endpoint (#80)