Bug on the GHRepository sync corrected. Test added to detect the bug. related to #11