added testcase for destroy method when nonshared context is used