fix trip deletion and the test