Added tests for Delete method of capsule controller