Fix test cleanup for the trash can autowired test