resolve #6 Only one pair of coordinates affects exception. Also jasmine added