Recognize custom close method #1130

New test-case.
Modified test-case "New use case" to match 
Code to recognize custom close method, example myObject.customClose();