Fix JS tests for delete location and clear trip