Added unit tests to ensure that dragEnded is call when a drag is cancel