add test for dispose