expose correct dispose method
testcase for correct dispose method